package com.ruoyi.finance.livestreaming.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 账户能量值记录
 * </p>
 *
 * @author wangmh
 * @since 2023-09-21
 */
@TableName("sz_energy_record")
@ApiModel(value = "SzEnergyRecord对象", description = "账户能量值记录")
public class SzEnergyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("记录时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("能量值")
    @TableField("energy")
    private BigDecimal energy;

    @ApiModelProperty("产生类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("操作人")
    @TableField("create_user")
    private Long createUser;

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public BigDecimal getEnergy() {
        return energy;
    }

    public void setEnergy(BigDecimal energy) {
        this.energy = energy;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "SzEnergyRecord{" +
            "id=" + id +
            ", userId=" + userId +
            ", createTime=" + createTime +
            ", energy=" + energy +
            ", type=" + type +
        "}";
    }
}
